#include "resourcewindow.h"

namespace gunsmith
{
CResourceWindow::CResourceWindow() : CResource(RT_WINDOWINFO)
{
	ZeroMemory(&m_xWindowInfo, 0);
}

CResourceWindow::~CResourceWindow()
{

}

/*!	\brief		Create window resource which can provide info about the used display window.
	\param		pSource	Takes a TDisplayWindowInfo as input.
	\return		bool
	\remarks	
	\sa			*/
bool CResourceWindow::Create(void *pSource)
{
	if(pSource == NULL)
		return false;

	m_xWindowInfo = *((TDisplayWindowInfo*)pSource);

	return true;
}

/*!	\brief		Nothing. Variabl gets destructed because of leaving its scope.
	\return		void
	\remarks	
	\sa			*/
void CResourceWindow::Destroy()
{
}

/*!	\brief		Returns a TDisplayWindowInfo pointer.
	\return		const TDisplayWindowInfo*	Display window info.
	\remarks	
	\sa			*/
const TDisplayWindowInfo* CResourceWindow::GetInfo() const
{
	return &m_xWindowInfo;
}
};